﻿<phone:PhoneApplicationPage 
    x:Class="HelloColumbusApplication.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Controls="clr-namespace:Columbus.Controls;assembly=Columbus" xmlns:commands="clr-namespace:Columbus.Commands;assembly=Columbus" xmlns:Converters="clr-namespace:Columbus.Converters;assembly=Columbus" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        
        <Controls:Frame 
            Grid.Row="0" 
            x:Name="Content">            
            <!-- 
                Overriding default progress indicator is not mandatory, 
                we are overriding its template to show action custom progress.
            -->
            <Controls:Frame.ProgressIndicator>
                <TextBlock 
                    VerticalAlignment="Center"
                    TextWrapping="Wrap"  
                    Text="{Binding Progress, ElementName=Content}"
                    FontSize="26"
                    FontWeight="ExtraBold">
                </TextBlock>
            </Controls:Frame.ProgressIndicator>
        </Controls:Frame>
        
        <TextBlock Grid.Row="1" 
                   TextWrapping="Wrap"
                   Text="Application shell can be used as Master Page, it can have view model and multiple navigation frames" 
                   VerticalAlignment="Center"
                   HorizontalAlignment="Right"></TextBlock>
    </Grid>
</phone:PhoneApplicationPage>